package cc.ls51;

import cc.ls51.commons.dynamic.datasource.config.DynamicDataSourceConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication
@MapperScan("cc.ls51.modules.**.mapper")
public class CcLs51ApiApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(CcLs51ApiApplication.class, args);
        String port =  context.getEnvironment().getProperty("server.port");
        LoggerFactory.getLogger(CcLs51ApiApplication.class).info("Api入口：http://localhost:" + port);
        LoggerFactory.getLogger(CcLs51ApiApplication.class).info("Api说明入口：http://localhost:" + port+"/swagger-ui.html");
    }

}
